﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models
{
    public class PurchaseRequestBody
    {
        /// <summary>
        /// 主键
        /// </summary>
        public decimal ID { get; set; }

        /// <summary>
        /// 主表ID
        /// </summary>
        public decimal HeadID { get; set; }

        /// <summary>
        /// 申请单号
        /// </summary>
        public string PR_ApplyNo { get; set; }

        /// <summary>
        /// 物品编号
        /// </summary>
        public string PR_ItemID { get; set; }

        /// <summary>
        /// 物品名称
        /// </summary>
        public string PR_ItemName { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string PR_Specs { get; set; }

        /// <summary>
        /// 计量单位
        /// </summary>
        public string PR_Unit { get; set; }

        /// <summary>
        /// 单价（元）
        /// </summary>
        public decimal PR_Price { get; set; }

        /// <summary>
        /// 申请数量
        /// </summary>
        public decimal PR_ApplyQty { get; set; }

        /// <summary>
        /// 合计费用
        /// </summary>
        public decimal PR_TotalCost { get; set; }

        /// <summary>
        /// 采购数量
        /// </summary>
        public decimal PR_BuyQty { get; set; }

        /// <summary>
        /// 到货数量
        /// </summary>
        public decimal PR_GetQty { get; set; }

        /// <summary>
        /// 未到货数量（申请数量-到货数量）
        /// </summary>
        public decimal PR_NotGetQty { get; set; }

        /// <summary>
        /// 预计费用
        /// </summary>
        public decimal PR_PrePay { get; set; }

        /// <summary>
        /// 已支付费用
        /// </summary>
        public decimal PR_Paid { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string PR_Remark { get; set; } = "";

        /// <summary>
        /// 是否删除（0：未删除；1：已删除）
        /// </summary>
        public int IsDelete { get; set; }

        public PurchaseRequestBody()
        {
            PR_NotGetQty = 0;
        }
    }
}